﻿@model IEnumerable<WebSocketChat.Web.Models.ChatUser>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/scripts/jquery-1.10.2.min.js"></script>
    <script>
        $(function () {
            $.post("/WebSocketChat/api/Login", {
                LoginID: 'xiaobo',
                PassWords: '1bbd886460827015e5d605ed44252251'
            },
            function (a, b, c) {
                alert(a);
            }, "json");
        });
    </script>
</head>
<body>
    <p>
        @Html.ActionLink("Create New", "Create")
    </p>
    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.LoginID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.NickName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PassWords)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SignaTures)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Sex)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Birthday)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Telephone)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Email)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Intro)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.HeadPortrait)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ShengXiao)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Age)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Constellation)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.BloodType)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SchoolTag)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Vocation)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.NationID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ProvinceID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CityID)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.FriendPolicyQuestion)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.FriendPolicyAnswer)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.FriendPolicyPassword)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.FriendshipPolicy.FriendshipPolicy1)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.UserState.StateName)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.LoginID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.NickName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PassWords)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.SignaTures)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Sex)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Birthday)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Telephone)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Email)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Intro)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.HeadPortrait)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ShengXiao)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Age)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Constellation)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.BloodType)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.SchoolTag)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Vocation)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.NationID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ProvinceID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.CityID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FriendPolicyQuestion)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FriendPolicyAnswer)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FriendPolicyPassword)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FriendshipPolicy.FriendshipPolicy1)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.UserState.StateName)
                </td>
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
                    @Html.ActionLink("Details", "Details", new { id = item.ID }) |
                    @Html.ActionLink("Delete", "Delete", new { id = item.ID })
                </td>
            </tr>
        }

    </table>
</body>
</html>
